package com.qf.news.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 新闻信息表(NewsInfo)表实体类
 *
 * @author makejava
 * @since 2023-07-20 10:11:38
 */
@Data
@Accessors(chain = true)
public class NewsInfo implements Serializable {
    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //新闻分类id
    private Integer tid;
    //新闻标题
    private String subject;
    //封面
    private String fengmian;
    //作者
    private String writer;
    //新闻
    private String info;
    //发布时间
    private Date createTime = new Date();
}

